# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=filezilla
pkgver=3.49.1
pkgrel=0
pkgdesc="FTP Client"
url="https://filezilla-project.org"
arch="all !mips !mips64"
license="GPL-2.0-or-later"
makedepends="gnutls-dev gtk+2.0-dev libfilezilla-dev>=0.18.0 libidn-dev
	pugixml-dev sqlite-dev wxgtk3-dev xdg-utils"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.filezilla-project.org/client/FileZilla_${pkgver}_src.tar.bz2
	missing-list-include.patch"
case "$CARCH" in
	s390x)
		options="!check" # ratelimit_test fails
esac

build() {
	export CXXFLAGS="$CXXFLAGS -include assert.h"
	./configure \
		 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-dbus \
		--with-wx-config=/usr/bin/wx-config-gtk3 \
		--disable-manualupdatecheck \
		--disable-autoupdatecheck
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e6e69858aff3be6f557cc338ac4cd4391699d171742a2e815dff15e029a76cb1cc0651c15a3b4fb95644371b4e84b913e34a70846454a7fd5de6f05a7f461add  FileZilla_3.49.1_src.tar.bz2
6280da4f1c359be7d49e8b590f036ddf1220ce6145fbba6c789c89d444a2a85d283275e402d996a6d28e9d5129f646b7920005d5d71faa4a80f0c734133c48a1  missing-list-include.patch"
